package com.java.controller;


import com.java.OrderFeignClient;
import com.java.config.result.Result;
import com.java.model.order.OrderCountQueryVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;


@Api("统计")
@RestController
@RequestMapping("admin/statistics")
public class StatisticsController {

    @Autowired
    private OrderFeignClient orderFeignClient;

    @ApiOperation("统计每日预约数量")
    @GetMapping("/getDateMap")
    public Result getDateMap(OrderCountQueryVo orderCountQueryVo){
        //调用order接口 查询每天预约次数
        return Result.ok(orderFeignClient.getOrderList(orderCountQueryVo));
    }


}
